<?php
/**
 * 
 * Template for showing a list of users and roles
 * 
 * @category Abovo
 * 
 * @package Abovo_App_System
 * 
 * @subpackage Abovo_App_System_Users
 * 
 * @license http://opensource.org/licenses/gpl-license.php GPL
 * 
 * @author Antti Holvikari <anttih@gmail.com>
 * 
 */
?>
<div class="yui-ga">
    <div class="yui-u first">
        <h2><?php echo $this->getText('APP_NAME') ?></h2>
        <table class="list">
            <tr>
                <th></th>
                <th>Name</th>
                <th>&nbsp;</th>
            </tr>
        <?php foreach ($this->users as $user): ?>
            <tr>
                <td><?php echo $this->avatar($user->handle) ?></td>
                <td><?php echo $this->escape($user->firstname . ' ' . $user->lastname) ?>
                (<b><?php echo $this->escape($user->handle) ?></b>)</td>
                <td><?php echo $this->action("system/users/permissions/$user->handle", $this->getText('APP_ACTION_PERMISSIONS')) ?></td>
            </tr>
        <?php endforeach; ?>
        </table>
    </div>
</div>